Image processing system, and image processing method, recording medium, and program

ABSTRACT

The present invention relates to apparatuses and methods for image processing, recording media, and programs in which extraction processing utilizing all pixels can be conducted. When a horizontal-component low-pass filter performs (1, 0, 1, 0, 1)/3 filtering with one of the green pixels in the first line as a target pixel, green pixels are multiplied by 1, red pixels are multiplied by 0, and the sum of the pixel values is divided by 3. As a result, a simple average of the target pixel and the adjacent green pixels is calculated. When one of the red pixels in the first line is defined as a target pixel, a simple average of the target pixel and the adjacent red pixels is calculated in the same manner. Similarly, green and blue pixels in the second line are filtered. Every third pixel of the horizontal components is then extracted in a 1/3 horizontal-extraction unit to generate an extracted-pixel group composed of pixels each having the simple-average value of every third pixel as a target pixel and the adjacent pixels of the same color. The present invention is applicable to digital cameras.

TECHNICAL FIELD

The present invention relates to apparatuses and methods for image processing, recording media, and programs, and in particular, relates to apparatuses and methods for image processing, recording media and programs suitable for extraction processing.

BACKGROUND ART

An image-pickup device converting light into electrical signals provided for, for example, digital cameras such as digital still cameras, digital video cameras, and digital cameras that can record both still and moving images, includes microscopic photodiodes disposed in rows and columns on the surface of the device chip. The photodiodes are semiconductors generating electrical charges in response to the strength of radiated light. Since the photodiodes themselves cannot distinguish colors, color components of the radiated light needs to be received to capture color images.

A single-chip color image-pickup device provided for common digital cameras or video cameras includes three-color or four-color filters disposed in a mosaic pattern on the photodiodes, so that each of the photodiodes responds to the respective color component. The cameras that utilize RGB color filters disposed in a mosaic pattern, in other words, which capture images with a single-chip image-pickup device, are referred to as single-chip cameras in contrast to, for example, three-chip cameras that utilize three separate image-pickup devices for RGB (red, green, and blue, i.e. the three primary colors of light).

A CCD (charge coupled device) and a CMOS (complementary metal-oxide semiconductor) sensor, for example, are the prevailing sensors employed as the image-pickup device.

CCD originally indicated overall devices having a function of transmitting electrical charges in a bucket-brigade fashion, but nowadays, CCD in general indicates a CCD image-pickup device utilizing a CCD for reading out the electrical charges. The CCD is widely employed in imaging devices such as digital cameras and image scanners that capture images.

The CCD image-pickup device is composed of photodiodes and circuits successively extracting and transmitting electrical charges generated by the photodiodes. Specifically, the CCD image-pickup device includes the photodiodes and electrodes disposed in a grid pattern on a silicon substrate (the number of the grid sections corresponds to the number of pixels of the CCD). As in the case of film, when optical images are focused at the sections of the grid through lenses, each of the photodiodes generates electrical charges in response to the strength of received light. By alternately applying voltages to the electrodes, the accumulated electrical charges move to the adjacent electrodes as if the electrical charges are pushed by a pump, and are finally output one by one. Amplifying this output and converting it into digital values generates two-dimensional image data. For moving images, this process is endlessly repeated to generate moving images as successive still images.

The CMOS sensor is an image-pickup device provided with a CMOS switch for reading out the electrical charges instead of a CCD, and each of the pixels is composed of a photodiode and a switch utilizing a CMOS transistor. That is to say, the photodiodes disposed in a grid pattern are individually provided with a switch, and the electrical charges are read out at each pixel by changing over the switches in turn. This structure can provide various advantages. For example, smears, which are peculiar to the CCD, do not occur in theory, power consumption is low (approximately one-tenth of the CCD), and a single low-voltage can drive the CMOS sensor. Furthermore, since production lines for general chips can be utilized to produce the CMOS sensor together with peripheral functions as one chip, the CMOS sensor can be made smaller with lower costs. However, measures for noise caused by, for example, switching are required for practical application of the CMOS sensor as an image-pickup device.

The number of sensors on a solid-state image-pickup device, i.e. the number of pixels of captured images, for digital video cameras is one million pixels or less in most cases. Meanwhile, for digital still cameras, the number of pixels is increasing from one million or two million, to three million due to improvements in recent semiconductor technology and higher resolution.

Moreover, digital cameras that can record both still and moving images have been developed and come into widespread use in recent years.

However, the time required for reading out all the pixels becomes longer as the number of pixels of the captured images increases. Unlike the still images, when the readout time for moving images becomes long, smooth moving images cannot be produced.

To solve this problem, readout methods in which only some of the pixels are extracted are available when high resolution is not required.

So far, especially when a CCD is employed as an image-pickup device, some extracting methods are employed to display moving images and the like. For example, for 2×2 pixels (four pixels of Gr, R, B, and Gb), in the method shown in FIG. 1, only two pixels are extracted from eight pixels and the rest of the pixels are decimated, or, in the method shown in FIG. 2, only two pixels are extracted from twelve pixels and the rest of the pixels are decimated.

However, since the methods shown in FIGS. 1 and 2 cannot extract the pixels at even intervals, and moreover, do not utilize all the pixels, aliasing occurs in the displayed or recorded moving images.

DISCLOSURE OF INVENTION

In consideration of the above-described situation, the present invention provides extraction processing achieving extracted images in good condition without aliasing.

The image-processing apparatuses according to the present invention include acquiring means for acquiring image signals composed of multiple color components of a 2×2 color-coding array; filtering means for calculating the average of pixel values of any (2n−1) pixels, each including a target pixel and the adjacent pixels having the same color component as that of the target pixel, from the image signals acquired by the acquiring means, and defining the average as a pixel value of the target pixel; and extracting means for extracting the pixel having the average calculated by the filtering means as the pixel value at an extraction rate of 1/(2n−1).

The filtering means may calculate the averages of pixel values for all the pixels in a frame of the image signals.

The filtering means may select pixels having the same color component as that of the target pixel and aligned along the horizontal direction with respect to the target pixel, calculate the average of the pixel values of the (2n−1) pixels, and define the average as the pixel value of the target pixel.

The filtering means may select pixels having the same color component as that of the target pixel and aligned along the vertical direction with respect to the target pixel, calculate the average of the pixel values of the (2n−1) pixels, and define the average as the pixel value of the target pixel.

The filtering means may select pixels having the same color component as that of the target pixel disposed in a predetermined range in the horizontal and vertical directions with respect to the target pixel, calculate the average of the pixel values of the (2n−1) pixels, and define the average as the pixel value of the target pixel.

For the target pixel for at least one of the multiple color components, the filtering means may select pixels having the same color component as that of the target pixel in ascending order of distance from the target pixel, calculate the average of the pixel values of the (2n−1) pixels, and define the average as the pixel value of the target pixel.

For each of the target pixels for all the multiple color components, the filtering means may select pixels having the same color component as that of the target pixel in ascending order of distance from the target pixel, calculate the average of the pixel values of the (2n−1) pixels, and define the average as the pixel value of the target pixel.

The acquiring means may further include image-capturing means for capturing the image signals.

The image-capturing means may comprise a CMOS IC.

The image-capturing means, the filtering means, and the extracting means may be integrated in a single CMOS IC.

The image-processing apparatus may further include displaying means for displaying images corresponding to the image signals acquired by the acquiring means. When the images displayed by the displaying means are moving images, the image signals acquired by the acquiring means may be processed by the filtering means and the extracting means, and then displayed by the displaying means. When the images displayed by the displaying means are still images, the image signals acquired by the acquiring means may be displayed by the displaying means without being processed by the filtering means and the extracting means.

The image-processing apparatuses may further include recording means for recording the image signals acquired by the acquiring means. When the image signals recorded in the recording means are signals corresponding to moving images, the image signals acquired by the acquiring means may be processed by the filtering means and the extracting means, and then recorded in the recording means. When the image signals recorded in the recording means are signals corresponding to still images, the image signals acquired by the acquiring means may be recorded in the recording means without being processed by the filtering means and the extracting means.

The image-processing apparatuses may further include outputting means for outputting the image signals acquired by the acquiring means. When the image signals output from the outputting means are signals corresponding to moving images, the image signals acquired by the acquiring means may be processed by the filtering means and the extracting means, and then output from the outputting means. When the image signals output from the outputting means are signals corresponding to still images, the image signals acquired by the acquiring means may be output from the outputting means without being processed by the filtering means and the extracting means.

The image-processing methods according to the present invention include an acquisition-controlling step for controlling the acquisition of image signals composed of multiple color components of a 2×2 color-coding array; a filtering step for calculating the average of pixel values of any (2n−1) pixels, each including a target pixel and the adjacent pixels having the same color component as that of the target pixel, from the image signals whose acquisition is controlled by a process in the acquisition-controlling step, and defining the average as a pixel value of the target pixel; and an extracting step for extracting the pixel having the average calculated by a process in the filtering step as the pixel value at an extraction rate of 1/(2n−1).

The programs recorded in the recording media according to the present invention include an acquisition-controlling step for controlling the acquisition of image signals composed of multiple color components of a 2×2 color-coding array; a filtering step for calculating the average of pixel values of any (2n−1) pixels, each including a target pixel and the adjacent pixels having the same color component as that of the target pixel, from the image signals whose acquisition is controlled by a process in the acquisition-controlling step, and defining the average as a pixel value of the target pixel; and an extracting step for extracting the pixel having the average calculated by a process in the filtering step as the pixel value at an extraction rate of 1/(2n−1).

The programs according to the present invention include an acquisition-controlling step for controlling the acquisition of image signals composed of multiple color components of a 2×2 color-coding array; a filtering step for calculating the average of pixel values of any (2n−1) pixels, each including a target pixel and the adjacent pixels having the same color component as that of the target pixel, from the image signals whose acquisition is controlled by a process in the acquisition-controlling step, and defining the average as a pixel value of the target pixel; and an extracting step for extracting the pixel having the average calculated by a process in the filtering step as the pixel value at an extraction rate of 1/(2n−1).

According to the apparatus and the method for image processing and to the program of the present invention, image signals composed of multiple color components of a 2×2 color-coding array are acquired, the average of pixel values of any (2n−1) pixels, each including a target pixel and the adjacent pixels having the same color component as that of the target pixel, is calculated from the acquired image signals, the average is defined as a pixel value of the target pixel, and the pixel having the calculated average as the pixel value is extracted at an extraction rate of 1/(2n−1).

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates 1/8 extraction in the vertical direction according to a known technology.

FIG. 2 illustrates 2/12 extraction in the vertical direction according to a known technology.

FIG. 3 is a block diagram illustrating the structure of a video camera to which the present invention is applied.

FIG. 4 is a block diagram illustrating a more detailed structure of the extracting unit shown in FIG. 3.

FIG. 5 illustrates the Bayer array.

FIG. 6 illustrates a process performed by the extracting unit shown in FIG. 4.

FIG. 7 illustrates a frequency band of an image input to the extracting unit shown in FIG. 4.

FIG. 8 illustrates the frequency band of the image filtered by the extracting unit shown in FIG. 4.

FIG. 9 illustrates the frequency band of the image output from the extracting unit shown in FIG. 4.

FIG. 10 is a block diagram illustrating another structure of the extracting unit.

FIG. 11 illustrates a process performed by the extracting unit shown in FIG. 10.

FIG. 12 illustrates a frequency band of an image filtered by the extracting unit shown in FIG. 10.

FIG. 13 illustrates the frequency band of the image output from the extracting unit shown in FIG. 10.

FIG. 14 is a block diagram illustrating another structure of the extracting unit.

FIG. 15 illustrates a process performed by the extracting unit shown in FIG. 14.

FIG. 16 is a block diagram illustrating another structure of the extracting unit.

FIG. 17 illustrates image signals input to the extracting unit shown in FIG. 16.

FIG. 18 illustrates a process performed by the extracting unit shown in FIG. 16.

FIG. 19 illustrates image signals output from the extracting unit shown in FIG. 16.

FIG. 20 illustrates another process performed by the extracting unit shown in FIG. 16.

BEST MODE FOR CARRYING OUT THE INVENTION

Embodiments of the present invention will now be described with reference to the drawings.

FIG. 3 is a block diagram illustrating the structure of a digital camera to which the present invention is applied.

An operation-inputting unit 11 is composed of, for example, buttons, keys, and jog dials, and receives operational inputs provided by users for capturing still images, starting and stopping video image recordings, and adjusting images for exposure, focusing, and the like.

A controlling unit 12 is composed of a CPU (central processing unit), a ROM (read only memory), and a RAM (random access memory), and controls operations of a digital camera 1 by generating control signals for controlling an image-capturing unit 13, an extracting unit 14, a camera-signal-processing unit 15, and a drive 18, and by outputting the control signals to the corresponding units on the basis of the user operations input through the operation-inputting unit 11.

The image-capturing unit 13 is composed of, for example, optical lenses, driving units for driving the optical lenses, an image-pickup device such as a CCD sensor or a CMOS sensor, and an A/D converter for converting analog electrical signals captured by the image-pickup device into digital signals. The image-capturing unit 13 captures still or moving images according to the control of the controlling unit 12.

According to the control of the controlling unit 12, the extracting unit 14 extracts image signals input from the image-capturing unit 13, if necessary.

The image-capturing unit 13 and the extracting unit 14 may be separate processing blocks, or may be structured as one chip (for example, the image-capturing unit 13 and the extracting unit 14 are integrated in one CMOS IC).

The camera-signal-processing unit 15 performs processing such as γ processing, white balancing, and de-mosaicing on the input image data according to the control of the controlling unit 12.

A displaying unit 16 is composed of, for example, a liquid-crystal panel, and displays the input image data. The displaying unit 16 functions as a viewfinder for checking the images to be captured, and displays the captured still images or the recorded moving images according to the user operations input through the operation-inputting unit 11. An outputting unit 17 is connected with other apparatuses or networks by wire or wireless to output the captured still images or the recorded moving images.

The drive 18 is loaded with a magnetic disk 21, an optical disk 22, a magneto-optical disk 23, a semiconductor memory 24, or the like, as appropriate. The drive 18 outputs and records the image signals supplied by the camera-signal-processing unit 15 onto the magnetic disk 21, the optical disk 22, the magneto-optical disk 23, the semiconductor memory 24, or the like; outputs and displays the still or moving image data recorded on the magnetic disk 21, the optical disk 22, the magneto-optical disk 23, the semiconductor memory 24, or the like on the displaying unit 16; or outputs the image data to other apparatuses from the outputting unit 17.

The drive 18 may be loaded with a magnetic tape. Moreover, besides the drive 18, recording media such as a semiconductor memory and a hard disk may be provided inside the digital camera 1 to record the captured image data inside the digital camera 1.

Programs read out from the recording media such as the magnetic disk 21, the optical disk 22, the magneto-optical disk 23, or the semiconductor memory 24 loaded in the drive 18 are supplied to and installed in the controlling unit 12, if required.

When a user operates the operation-inputting unit 11 to display images capturable by the image-capturing unit 13 on the displaying unit 16, in other words, when the displaying unit 16 is used as a viewfinder, the controlling unit 12 controls the image-capturing unit 13 to successively capture image data and output the image data to the extracting unit 14. According to the control of the controlling unit 12, the extracting unit 14 performs extraction and outputs the extracted image data to the camera-signal-processing unit 15. The extraction will be described in detail below. The camera-signal-processing unit 15 performs a predetermined processing on the extracted image data supplied from the extracting unit 14 to output and display the image data on the displaying unit 16.

Due to the extraction, the time required for reading out the image data can be reduced, and thus the motion of the moving images displayed on the displaying unit 16 can be smooth.

When the user checks the images displayed on the displaying unit 16 and issues an order to capture a still image through the operation-inputting unit 11, the controlling unit 12 controls the image-capturing unit 13 to capture a frame of image data and output the image data to the extracting unit 14. According to the control of the controlling unit 12, the extracting unit 14 outputs the image data composed of all the pixels to the camera-signal-processing unit 15 without decimating the image data. The camera-signal-processing unit 15 performs a predetermined processing on the frame of the undecimated image data supplied from the extracting unit 14 to output and display the image data on the displaying unit 16, and to output and record the image data onto the predetermined recording media loaded in the drive 18.

Since the image data is not decimated, high-resolution images are recorded onto the predetermined recording media loaded in the drive 18.

When the user checks the images displayed on the displaying unit 16 and issues an order to capture moving images through the operation-inputting unit 11, the controlling unit 12 controls the image-capturing unit 13 to successively capture image data and output the image data to the extracting unit 14. According to the control of the controlling unit 12, the extracting unit 14 performs the extraction and outputs the extracted image data to the camera-signal-processing unit 15. The camera-signal-processing unit 15 performs a predetermined processing on the extracted image data supplied from the extracting unit 14 to output and display the image data on the displaying unit 16, and to output and record the image data onto the predetermined recording media loaded in the drive 18.

Due to the extraction, the time required for reading out the image data can be reduced, and thus the moving images can be recorded onto the predetermined recording media loaded in the drive 18.

The user can output and display the still or moving image data recorded on the predetermined recording media loaded in the drive 18 on the displaying unit 16, or can output the image data to other apparatuses from the outputting unit 17 by operating the operation-inputting unit 11.

The digital camera 1 may include a microphone for recording audio data, an audio-data-processing unit for processing the recorded audio data, a speaker for outputting the audio data, and the like.

FIG. 4 is a block diagram illustrating a more detailed structure of the extracting unit 14.

A horizontal-component low-pass filter 31 subjects the input image signals to (1, 0, 1, 0, 1)/3 filtering in the horizontal direction. A 1/3 horizontal-extraction unit 32 resamples (extracts) every third pixel in the horizontal direction.

For example, filtering and resampling utilizing a color-coding array shown in FIG. 5 will now be described with reference to FIG. 6. In the color-coding array, green and red components are disposed in the first line and blue and green components are disposed in the second line, in other words, color filters are arranged in the so-called 2×2 Bayer array (G (green) checkered array).

In the first line, pixels corresponding to the positions of the green filters (referred to as green pixels hereafter) and pixels corresponding to the positions of the red filters (referred to as red pixels hereafter) are alternately disposed. When the horizontal-component low-pass filter 31 performs the (1, 0, 1, 0, 1)/3 filtering with one of the green pixels as a target pixel, portions corresponding to three green pixels including the target pixel are multiplied by 1, portions corresponding to red pixels are multiplied by 0, and the sum of the pixel values is divided by 3. As a result, a simple average of the target green pixel and the adjacent green pixels is calculated.

Meanwhile, when the horizontal-component low-pass filter 31 performs the (1, 0, 1, 0, 1)/3 filtering with one of the red pixels as a target pixel, portions corresponding to three red pixels including the target pixel are multiplied by 1, portions corresponding to green pixels are multiplied by 0, and the sum of the pixel values is divided by 3. As a result, a simple average of the target red pixel and the adjacent red pixels is calculated.

Similarly, the horizontal-component low-pass filter 31 filters green pixels and pixels corresponding to the positions of the blue filters (referred to as blue pixels hereafter) in the second line.

Every third pixel of horizontal components is then extracted in the 1/3 horizontal-extraction unit 32 to finally generate an extracted-pixel group composed of pixels each having the simple-average value of every third pixel, indicated by arrows shown in FIG. 6, as a target pixel and the adjacent pixels of the same color.

In FIG. 6, pixels filtered when the green pixels are defined as the target pixels and when the red pixels are defined as the target pixels are separately illustrated in the upper row and in the lower row, respectively, and pixels filtered when the blue pixels are defined as the target pixels and when the green pixels are defined as the target pixels are separately illustrated in the upper row and in the lower row, respectively. However, the horizontal-component low-pass filter 31 can simultaneously process the same lines.

FIG. 7 illustrates a frequency band of an image before the image is input to the extracting unit 14. The Nyquist threshold frequency fn of the pre-extracted image is half the sampling frequency fs of the pre-extracted image.

FIG. 8 illustrates the frequency band after the pre-extracted image is subjected to the (1, 0, 1, 0, 1)/3 filtering in the horizontal-component low-pass filter 31. FIG. 9 illustrates the frequency band after the image is extracted in the 1/3 horizontal-extraction unit 32.

In FIGS. 8 and 9, both the values of the Nyquist threshold frequency fn′ and the sampling frequency fs′ are appropriately limited compared to that before the image is input to the extracting unit 14 described with reference to FIG. 7, and furthermore, these sampling points are at even intervals.

That is to say, in known methods for extracting images, almost all of the pixels are not utilized but only a part of the pixels are utilized for generating extracted images. However, the extracting unit 14 can generate extracted images having substantially no phase shifts and very small aliasing therein by filtering all the pixels and extracting the pixels at even intervals.

As stated above, in the extracting unit 14, the pre-extracted images are subjected to the (1, 0, 1, 0, 1)/3 filtering in the horizontal-component low-pass filter 31, and then are decimated to one-third in the 1/3 horizontal-extraction unit 32. However, any filters can be employed as long as the filters can generate a trap point at the sampling frequency fs′ after the extraction, can appropriately limit the frequency band at the Nyquist threshold frequency fn′, and the extracted images have substantially no phase shifts therein.

For example, besides the extraction rate of 1/3, this extracting method is viable when the extraction rate is 1/(2n−1) (where n is a positive integer). For example, in the digital camera 1 shown in FIG. 3, instead of the extracting unit 14, an extracting unit 41 shown in FIG. 10 may be employed.

A horizontal-component low-pass filter 51 subjects the input image signals to (1, 0, 1, 0, 1, 0, 1, 0, 1)/5 filtering in the horizontal direction. A 1/5 horizontal-extraction unit 52 resamples (extracts) every fifth pixel in the horizontal direction.

For example, filtering and resampling utilizing the color filters arranged in the 2×2 Bayer array illustrated with reference to FIG. 5 will now be described with reference to FIG. 11.

When the horizontal-component low-pass filter 51 performs the (1, 0, 1, 0, 1, 0, 1, 0, 1)/5 filtering with one of the green pixels as a target pixel in the first line, portions corresponding to five green pixels including the target pixel are multiplied by 1, portions corresponding to red pixels are multiplied by 0, and the sum of the pixel values is divided by 5. As a result, a simple average of the target green pixel and the adjacent green pixels is calculated.

Meanwhile, when the horizontal-component low-pass filter 51 performs the (1, 0, 1, 0, 1, 0, 1, 0, 1)/5 filtering with one of the red pixels as a target pixel, portions corresponding to five red pixels including the target pixel are multiplied by 1, portions corresponding to green pixels are multiplied by 0, and the sum of the pixel values is divided by 5. As a result, a simple average of the target red pixel and the adjacent red pixels is calculated.

Similarly, the horizontal-component low-pass filter 51 filters green pixels and blue pixels in the second line. Every fifth pixel of horizontal components is then extracted in the 1/5 horizontal-extraction unit 52 to finally generate an extracted-pixel group composed of pixels each having the simple-average value of every fifth pixel, indicated by arrows shown in FIG. 11, as a target pixel and the adjacent pixels of the same color.

In FIG. 11, pixels filtered when the green pixels are defined as the target pixels and when the red pixels are defined as the target pixels are separately illustrated in the upper row and in the lower row, respectively, and pixels filtered when the blue pixels are defined as the target pixels and when the green pixels are defined as the target pixels are separately illustrated in the upper row and in the lower row, respectively. However, the extracting unit 41 can simultaneously process the same lines.

For example, as in the case of the description with reference to FIG. 7, an instance when an image is input to the extracting unit 41 will now be described with reference to FIGS. 12 and 13. The Nyquist threshold frequency fn of the pre-extracted image is half the sampling frequency fs of the pre-extracted image.

FIG. 12 illustrates the frequency band after the pre-extracted image is subjected to the (1, 0, 1, 0, 1, 0, 1, 0, 1)/5 filtering in the horizontal-component low-pass filter 51. FIG. 13 illustrates the frequency band after the image is extracted in the 1/5 horizontal-extraction unit 52.

In the frequency band after the filtering shown in FIG. 12 and in the frequency band after the extraction shown in FIG. 13, both the values of the Nyquist threshold frequency fn′ and the sampling frequency fs′ are appropriately limited compared to that of the pre-extracted image described with reference to FIG. 7, and furthermore, these sampling points are at even intervals.

Similar to the above-described extracting unit 14, the extracting unit 41 can generate extracted images having very small aliasing therein by filtering all the pixels and extracting the pixels at even intervals.

In this manner, when the extraction rate is 1/(2n−1) (where n is a positive integer), averaging the pixels of the same color (2n−1) adjacent to the target pixels and extracting the pixels can generate a trap point at the sampling frequency fs′ after the extraction and can appropriately limit the frequency band at the Nyquist threshold frequency fn′, and therefore, the extracted images have substantially no phase shifts therein. Furthermore, this extraction can generate extracted images having very small aliasing therein since all the pixels are utilized for the extraction.

This extraction can be performed not only in the horizontal direction but also in the vertical direction by employing an extracting unit 61 shown in FIG. 14, for example, instead of the extracting unit 14 in the digital camera 1 shown in FIG. 3.

Delay lines 71 are delay lines for four lines to synchronize image signals of five lines in the vertical direction. A vertical-component low-pass filter 72 subjects the input image signals to (1, 0, 1, 0, 1)/3 filtering in the vertical direction. A 1/3 vertical-extraction unit 73 resamples (extracts) every third pixel in the vertical direction.

For example, filtering and resampling utilizing the color filters arranged in the 2×2 Bayer array illustrated with reference to FIG. 5 will now be described with reference to FIG. 15.

In the first vertical line, green pixels and blue pixels are alternately disposed. In the second vertical line, red pixels and green pixels are alternately disposed. When the vertical-component low-pass filter 72 performs the (1, 0, 1, 0, 1)/3 filtering with one of the green pixels as a target pixel in the first vertical line, portions corresponding to green pixels are multiplied by 1, portions corresponding to red pixels are multiplied by 0, and the sum of pixel values of the three pixels including the target pixel is divided by 3. As a result, a simple average of the target green pixel and the adjacent green pixels is calculated.

Meanwhile, when the vertical-component low-pass filter 72 performs the (1, 0, 1, 0, 1)/3 filtering with one of the red pixels as a target pixel, portions corresponding to red pixels are multiplied by 1, portions corresponding to green pixels are multiplied by 0, and the sum of the pixel values of the three pixels including the target pixel is divided by 3. As a result, a simple average of the target red pixel and the adjacent red pixels is calculated.

Similarly, the vertical-component low-pass filter 72 filters green pixels and blue pixels in the second vertical line.

Every third pixel of vertical components is then extracted in the 1/3 vertical-extraction unit 73 to finally generate an extracted-pixel group composed of pixels each having the simple-average value of every third pixel, indicated by arrows shown in FIG. 15, as a target pixel and the adjacent pixels of the same color.

In FIG. 15, pixels filtered when the green pixels are defined as the target pixels and when the red pixels are defined as the target pixels are separately illustrated in the right line and in the left line, respectively, and pixels filtered when the blue pixels are defined as the target pixels and when the green pixels are defined as the target pixels are separately illustrated in the right line and in the left line, respectively. However, the extracting unit 61 can simultaneously process the same vertical lines.

The vertical extraction processing, illustrated with reference to FIGS. 14 and 15, can also generate a trap point at the sampling frequency fs′ after the extraction and can appropriately limit the frequency band at the Nyquist threshold frequency fn′, and therefore, the extracted images have substantially no phase shifts therein. Furthermore, this extraction can generate extracted images having very small aliasing therein since all the pixels are utilized for the extraction.

When the image-capturing unit 13 in the digital camera 1 shown in FIG. 3 can read out images in blocks, extraction can be performed simultaneously in the horizontal direction and in the vertical direction by employing an extracting unit 81 shown in FIG. 16, instead of the extracting unit 14.

A horizontal-vertical-component low-pass filter 91 subjects the input image signals to (1, 0, 1, 0, 1)/3 filtering in the horizontal direction and (1, 0, 1, 0, 1)/3 filtering in the vertical direction. In other words, the horizontal-vertical-component low-pass filter 91 has a filter factor of (3, 0, 3, 0, 3)/9 in the horizontal and vertical directions to average nine adjacent pixels of the same color in the horizontal and vertical directions. A 1/3 horizontal-vertical-extraction unit 92 resamples (extracts) every third pixel in the horizontal and vertical directions, that is to say, resamples nine pixels to one pixel.

For example, when the color filters are arranged in the 2×2 Bayer array, the horizontal-vertical-component low-pass filter 91 subjects the input pixels shown in FIG. 17 to (3, 0, 3, 0, 3)/9 filtering in the horizontal and vertical directions by blue, green, and red components as shown in FIG. 18. The pixels whose color component is not the same as that of the target pixel are multiplied by 0, the pixels whose color component is the same as that of the target pixel are multiplied by 1, and the sum of pixel values of the nine pixels including the target pixel is divided by 9. As a result, the nine adjacent pixels of the same color in the horizontal and vertical directions are averaged.

One of the nine adjacent pixels in the horizontal and vertical directions is then extracted in the 1/3 horizontal-vertical-extraction unit 92 to generate an extracted image shown in FIG. 19.

In a 5×5 square pixel group (n, m) (where 1≦n≦5, and 1≦m≦5) having a target pixel in the center and including three pixels of the same color in the horizontal and vertical directions, nine pixels at (1, 1), (1, 3), (1, 5), (3, 1), (3, 3) (i.e. the target pixel), (3, 5), (5, 1), (5, 3), and (5, 5) are averaged. However, pixel groups of any shape can be employed for the averaging as long as the phase positions of the pixels do not change after the extraction.

For example, as shown in FIG. 20, the horizontal-vertical-component low-pass filter 91 may subject the pixels of the blue and red components to the (3, 0, 3, 0, 3)/9 filtering in the horizontal and vertical directions, and may subject the pixels of the green component to (1, 2, 3, 2, 1)/9 filtering in the horizontal and vertical directions to average nine adjacent pixels located in a diamond shape having the target pixel in the center.

In this manner, for the pixels of the green component disposed in a mosaic pattern, the average of the nearest nine pixels to the target pixel can be calculated by performing the (1, 2, 3, 2, 1)/9 filtering in the horizontal and vertical directions and averaging the nine adjacent pixels located in a diamond shape, compared to the filtering by (3, 0, 3, 0, 3)/9 illustrated with reference to FIG. 18.

For this simultaneous extraction in the horizontal and vertical directions, in particular, when the filter factors are different according to the pixels, as illustrated with reference to FIG. 20, the extraction can be performed by a CCD functioning as an image-pickup device included in the image-capturing unit 13 in the digital camera 1 shown in FIG. 3, but CMOS is more suitable than the CCD for the image-pickup device.

In the simultaneous extraction in the horizontal and vertical directions, extraction having the same effect is also viable when the extraction rate is 1/(2n−1) (where n is a positive integer) besides the extraction rate of 1/3.

As described with reference to FIGS. 16 to 20, the horizontal-vertical extraction to which the present invention is applied can generate a trap point at the sampling frequency fs′ after the extraction and can appropriately limit the frequency band at the Nyquist threshold frequency fn′, and therefore, the extracted images have substantially no phase shifts therein. Furthermore, this horizontal-vertical extraction can generate extracted images having very small aliasing therein since all the pixels are utilized for the extraction.

In the above-described processing, since pixel ranges of each color component are spatially repeated and averaged, the color-coding array of the image after the extraction is the same as that before the extraction. Accordingly, the present invention is applicable to processing utilizing any color-coding arrays as long as 2×2 color-coding arrays are employed.

Though the Bayer array of three primary colors of light is employed above, the present invention is also applicable, for example, when color-coding arrays with complementary colors are employed. For example, complementary-color filters often form a 2×2 pattern with CMYG composed of CMY (cyan, magenta, and yellow) of subtractive colors and G (green). Naturally, the present invention is applicable when the complementary-color filters are employed.

The series of processes described above can also be performed by software. The software installation is performed by installing the programs composing the software from recording media to computers implemented by dedicated hardware, or, for example, to general personal computers in which various functions are executable by installing various programs.

As shown in FIG. 3, these recording media are packaged media and the like composed of the magnetic disk 21 (including flexible disks), the optical disk 22 (including CD-ROM (compact disk-read only memory) and DVD (digital versatile disk)), the magneto-optical disk 23 (including MD (Mini-Disk®)), the semiconductor memory 24, or the like in which programs are recorded, besides the computers. The recording media are delivered to users for supplying the programs.

In this specification, the step of describing the programs recorded in the recording media includes not only processes performed in the order of description in chronological order, but also processes performed in parallel or individually.

INDUSTRIAL APPLICABILITY

According to the present invention, captured images can be extracted for being displayed, recorded, and output.

Furthermore, according to the present invention, simple averages of (2n−1) (where n is a positive integer) pixels of the same color are determined by utilizing all the pixels of the captured images, and then the pixels are decimated to 1/(2n−1). As a result, extracted images having substantially no phase shifts and very small aliasing therein can be generated. 

1. An image-processing apparatus for processing images, comprising: acquiring means for acquiring image signals composed of multiple color components of a 2×2 color-coding array; filtering means for calculating the average of pixel values of any (2n−1) pixels, each including a target pixel and the adjacent pixels having the same color component as that of the target pixel, from the image signals acquired by the acquiring means, and defining the average as a pixel value of the target pixel; and extracting means for extracting the pixel having the average calculated by the filtering means as the pixel value at an extraction rate of 1/(2n−1).
 2. The image-processing apparatus according to claim 1, wherein the filtering means calculates the averages of pixel values for all the pixels in a frame of the image signals.
 3. The image-processing apparatus according to claim 1, wherein the filtering means selects pixels having the same color component as that of the target pixel and aligned along the horizontal direction with respect to the target pixel, calculates the average of the pixel values of the (2n−1) pixels, and defines the average as the pixel value of the target pixel.
 4. The image-processing apparatus according to claim 1, wherein the filtering means selects pixels having the same color component as that of the target pixel and aligned along the vertical direction with respect to the target pixel, calculates the average of the pixel values of the (2n−1) pixels, and defines the average as the pixel value of the target pixel.
 5. The image-processing apparatus according to claim 1, wherein the filtering means selects pixels having the same color component as that of the target pixel disposed in a predetermined range in the horizontal and vertical directions with respect to the target pixel, calculates the average of the pixel values of the (2n−1) pixels, and defines the average as the pixel value of the target pixel.
 6. The image-processing apparatus according to claim 1, wherein for the target pixel for at least one of the multiple color components, the filtering means selects pixels having the same color component as that of the target pixel in ascending order of distance from the target pixel, calculates the average of the pixel values of the (2n−1) pixels, and defines the average as the pixel value of the target pixel.
 7. The image-processing apparatus according to claim 1, wherein for each of the target pixels for all the multiple color components, the filtering means selects pixels having the same color component as that of the target pixel in ascending order of distance from the target pixel, calculates the average of the pixel values of the (2n−1) pixels, and defines the average as the pixel value of the target pixel.
 8. The image-processing apparatus according to claim 1, wherein: the acquiring means further includes image-capturing means for capturing the image signals.
 9. The image-processing apparatus according to claim 8, wherein: the image-capturing means comprises a CMOS IC.
 10. The image-processing apparatus according to claim 8, wherein: the image-capturing means, the filtering means, and the extracting means are integrated in a single CMOS IC.
 11. The image-processing apparatus according to claim 1, further comprising: displaying means for displaying images corresponding to the image signals acquired by the acquiring means, wherein when the images displayed by the displaying means are moving images, the image signals acquired by the acquiring means are processed by the filtering means and the extracting means, and then are displayed by the displaying means; and when the images displayed by the displaying means are still images, the image signals acquired by the acquiring means are displayed by the displaying means without being processed by the filtering means and the extracting means.
 12. The image-processing apparatus according to claim 1, further comprising: recording means for recording the image signals acquired by the acquiring means, wherein when the image signals recorded in the recording means are signals corresponding to moving images, the image signals acquired by the acquiring means are processed by the filtering means and the extracting means, and then are recorded in the recording means; and when the image signals recorded in the recording means are signals corresponding to still images, the image signals acquired by the acquiring means are recorded in the recording means without being processed by the filtering means and the extracting means.
 13. The image-processing apparatus according to claim 1, further comprising: outputting means for outputting the image signals acquired by the acquiring means, wherein when the image signals output from the outputting means are signals corresponding to moving images, the image signals acquired by the acquiring means are processed by the filtering means and the extracting means, and then are output from the outputting means; and when the image signals output from the outputting means are signals corresponding to still images, the image signals acquired by the acquiring means are output from the outputting means without being processed by the filtering means and the extracting means.
 14. An image-processing method of an image-processing apparatus for processing images, comprising: an acquisition-controlling step for controlling the acquisition of image signals composed of multiple color components of a 2×2 color-coding array; a filtering step for calculating the average of pixel values of any (2n−1) pixels, each including a target pixel and the adjacent pixels having the same color component as that of the target pixel, from the image signals whose acquisition is controlled by a process in the acquisition-controlling step, and defining the average as a pixel value of the target pixel; and an extracting step for extracting the pixel having the average calculated by a process in the filtering step as the pixel value at an extraction rate of 1/(2n−1).
 15. A recording media, wherein a program readable by a computer is recorded in the recording media, wherein the program is intended for an image-processing apparatus for processing images; and the program includes an acquisition-controlling step for controlling the acquisition of image signals composed of multiple color components of a 2×2 color-coding array; a filtering step for calculating the average of pixel values of any (2n−1) pixels, each including a target pixel and the adjacent pixels having the same color component as that of the target pixel, from the image signals whose acquisition is controlled by a process in the acquisition-controlling step, and defining the average as a pixel value of the target pixel; and an extracting step for extracting the pixel having the average calculated by a process in the filtering step as the pixel value at an extraction rate of 1/(2n−1).
 16. A program being executable by a computer that controls an image-processing apparatus for processing images, comprising: an acquisition-controlling step for controlling the acquisition of image signals composed of multiple color components of a 2×2 color-coding array; a filtering step for calculating the average of pixel values of any (2n−1) pixels, each including a target pixel and the adjacent pixels having the same color component as that of the target pixel, from the image signals whose acquisition is controlled by a process in the acquisition-controlling step, and defining the average as a pixel value of the target pixel; and an extracting step for extracting the pixel having the average calculated by a process in the filtering step as the pixel value at an extraction rate of 1/(2n−1). 